#include "workgame.h"
#include "connection.h"
#include <QApplication>
#include <QDir>
#include <QDebug>
#include <QSystemTrayIcon>
#include <QMessageBox>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QDir::setCurrent(QApplication::applicationDirPath());
    if(!createConnection()) return 1;

    WorkGame w;
    w.show();
    return a.exec();
}
